package com.liukai.java_jxgl.service.impl;


import com.liukai.java_jxgl.mapper.IUserMapper;
import com.liukai.java_jxgl.model.SystemUser;
import com.liukai.java_jxgl.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private IUserMapper iUserMapper;

    @Override
    public SystemUser login(Integer userId, String userPwd) {
        return iUserMapper.getUserByUserId(userId);
    }

    /**
     * 查询所有用户
     * @return
     */
    @Override
    public List<SystemUser> getAllUser(){
        return iUserMapper.getAllUser();
    }
}
